1 <?php
2 include(
"header.php");
3 include(
"sidebar.php");
4 include(
"dbconnection.php");
5 $result= mysql_query(
"select * from customer");
6 ?>
7         
8                             
9         <div id=
"main">
10             
11             <a name=
"TemplateInfo"></a>
12             <h1>Registration</h1>
13             <?php

14 if
($ctins == 1)
15 {
16     echo
"<center><b>Employees account created successfully...</b></center><br>";
17     echo
"<center><b><a href='emplogin.php'>Click here to Login.</a></b></center>";
18 }

19 else

20 {
21     ?>
22         <form id=
"form1" name="form1" method="post" action="">
23           <table width=
"790" border="1">
24             <tr>
25               <th width=
"110" scope="col">Customer ID</th>
26               <th width=
"88" scope="col">First name</th>
27               <th width=
"88" scope="col">Last name</th>
28               <th width=
"133" scope="col">Email ID</th>
29               <th width=
"107" scope="col">Created date</th>
30               <th width=
"95" scope="col">Contact no1</th>
31               <th width=
"123" scope="col">Contact no2</th>
32             </tr>
33           <?php
34           
while($arrrec= mysql_fetch_array($result))
35           {
36            echo
" <tr>
37               <td>&nbsp; $arrrec[custid]</td>
38               <td>&nbsp; $arrrec[fname]</td>
39               <td>&nbsp; $arrrec[lname]</td>
40               <td>&nbsp; $arrrec[emailid]</td>
41               <td>&nbsp; $arrrec[createddate]</td>
42               <td>&nbsp; $arrrec[contactno1]</td>
43               <td>&nbsp; $arrrec[contactno2]</td>
44             </tr>"
;
45           }
46           ?>
47           </table>
48         </form>
49     <?php
50     }
51     ?>
52             <p>&nbsp;</p>
53 <br />
54                                             
55         </div>
56         
57 <!-- wrap ends here -->
58 </div>
59         
60 <?php
61 include(
"footer.php");
62 ?>


Gõ tìm kiếm nhanh...